package com.org.xdq;

public class One extends Thread{
    @Override
    public void run() {
        for(int i =1;i<=100;i++){
            System.out.println(this.getName()+":->"+i);
//            try {
//                Thread.sleep(50);
//            } catch (InterruptedException e) {
//                e.printStackTrace();
//            }
            //Thread.yield();
        }
    }

    public One(String name) {
        super(name);
    }
}
